package com.atguigu.iterator;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: 迭代器模式
 * @Author lixiaolong
 * @Date 2023/10/11
 */
public class Client {

	public static void main(String[] args) {
		// 集合
		List<College> collegeList = new ArrayList<>();

		College computerCollege = new ComputerCollege();
		College infoCollege = new InfoCollege();

		collegeList.add(computerCollege);
		collegeList.add(infoCollege);

		OutPutImpl outPutImpl = new OutPutImpl(collegeList);
		outPutImpl.printCollege();
	}

}
